export const isPhone = () => {
  let screenWidth =
    document.body.clientWidth || document.documentElement.clientWidth;
  if (screenWidth <= 768) {
    return true;
  } else {
    return false;
  }
};

export const isWeixin = () => {
  var ua = navigator.userAgent.toLowerCase();
  if (ua.match(/MicroMessenger/i) == "micromessenger") {
    return true;
  } else {
    return false;
  }
};
